package com.jeesite.modules.yzw.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @description:
 * @author: ciye
 * @date: 2022/7/21 17:24
 */
@ApiModel(
        value = "分页条件",
        description = "分页条件"
)
public class Pager {
    @ApiModelProperty(
            name = "totalRows",
            value = "总行数",
            example = "100"
    )
    private int totalRows;
    @ApiModelProperty(
            name = "pageSize",
            value = "每页显示的行数",
            example = "15"
    )
    private int pageSize = 10;
    @ApiModelProperty(
            name = "pageNo",
            value = "当前页号",
            example = "1"
    )
    private int pageNo = 1;
    @ApiModelProperty(
            name = "totalPages",
            value = "总页数",
            example = "1"
    )
    private int totalPages = 0;
    @ApiModelProperty(
            name = "sort",
            value = "排序字段",
            example = "1"
    )
    private String sort;
    private Object rows;
    @ApiModelProperty(
            name = "direction",
            value = "排序方式"
    )
    private String direction;
    @ApiModelProperty(
            name = "useSort",
            value = "是否排序"
    )
    private Boolean useSort = false;

    public Pager() {
    }

    public int getTotalRows() {
        return this.totalRows;
    }

    public void setTotalRows(int totalRows) {
        this.totalRows = totalRows;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNo() {
        return this.pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getTotalPages() {
        return this.totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public String getSort() {
        return this.sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public Object getRows() {
        return this.rows;
    }

    public void setRows(Object rows) {
        this.rows = rows;
    }

    public Boolean getUseSort() {
        return this.useSort;
    }

    public void setUseSort(Boolean useSort) {
        this.useSort = useSort;
    }

    public String getDirection() {
        return this.direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }
}
